<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="/pages/login/common.jsp" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    String showId = request.getParameter("showId");
    showId = showId == null ? "" : showId;
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title></title>

    <meta http-equiv="X-UA-Compatible" content="IE=8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta content="B2B电商平台" name="description"/>
    <meta content="B2B电商平台" name="keyword"/>
    <link rel="stylesheet" type="text/css" href="<%=path %>/include/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="<%=path %>/include/sweetalert/sweetalert.css"/>
    <script type="text/javascript" src="<%=path %>/include/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="<%=path %>/include/js/icss.left.js"></script>
    <script type="text/javascript" src="<%=path %>/include/sweetalert/sweetalert.min.js"></script>
    <script type="text/javascript" src="<%=path %>/include/sweetalert/sweetalert-dev.js"></script>
    <script type="text/javascript" src="<%=path%>/include/layer/layer.js"></script>
    <script type="text/javascript">
    </script>
</head>

<body style="padding-top:10px;margin:0;width:100%;">
<jsp:include page="../html/main/mainHead.jsp">
    <jsp:param name="hrefFlag" value="mainSale"/>
</jsp:include>
<div style="width:80%;text-align:center;display:block;overflow:hidden;margin-left: 10%;">
    <input type="hidden" id="finalDiscountMoney" name="finalDiscountMoney">
    <input type="hidden" id="finalDeliverMoney" name="finalDeliverMoney">
    <input type="hidden" id="finalDiscountOrderNo" name="finalDiscountOrderNo">
    <input type="hidden" id="refundType" name="refundType">
    <input type="hidden" id="refundOrderNo" name="refundOrderNo">
    <input type="hidden" id="refundOrderDetailUuid" name="refundOrderDetailUuid">
    <input type="hidden" id="rejectReason" name="rejectReason">
    <div style="width:20%;float:left;min-height:500px;">
        <div class="NewLeft">
            <div class="LeftBox">
                <h3>商品管理</h3>
                <dl>
                    <dd id="SPLM"><a href="javascript:void('')" target="_self" url="<%=path %>/sort/toSortList.do"
                                     onclick="_gotoPage('<%=path %>/sort/toSortList.do')">炫铺产品分类</a></dd>
                    <dd id="SPLMSP"><a href="javascript:void('')"
                                       url="<%=path %>/productForManager/toProductForManagerList.do" target="_self"
                                       onclick="_gotoPage('<%=path %>/productForManager/toProductForManagerList.do')">分类商品</a>
                    </dd>
                    <dd id="SPFB" class="ddCur"><a href="javascript:void('')"
                                                   url="<%=path %>/postTrade/toPostTradeOnePage.do" target="_self"
                                                   onclick="_gotoPage('<%=path %>/postTrade/toPostTradeOnePage.do')">商品发布</a>
                    </dd>
                    <dd id="ZSSP"><a href="javascript:void('')" target="_self"
                                     url="<%=path %>/productForSale/toProductForSalePage.do"
                                     onclick="_gotoPage('<%=path %>/productForSale/toProductForSalePage.do')">在售商品</a>
                    </dd>
                    <dd id="WSJSP"><a href="javascript:void('')" target="_self"
                                      url="<%=path %>/productOffLoad/toProductOffLoadPage.do"
                                      onclick="_gotoPage('<%=path %>/productOffLoad/toProductOffLoadPage.do')">未上架商品</a>
                    </dd>
                    <dd id="SPSH"><a href="javascript:void('')" target="_self"
                                     url="<%=path %>/productPrice/toPriceAuditListPage.do"
                                     onclick="_gotoPage('<%=path %>/auditGoods/toAuditGoodsList.do')">商品审核</a></dd>
                    <dd id="SPJGSQ"><a href="javascript:void('')" target="_self"
                                       url="<%=path %>/productPrice/toPriceAuditListPage.do"
                                       onclick="_gotoPage('<%=path %>/productPrice/toPriceAuditApplyListPage.do')">商品变价申请</a>
                    </dd>
                    <dd id="SPJGSH"><a href="javascript:void('')" target="_self"
                                       url="<%=path %>/productPrice/toPriceAuditListPage.do"
                                       onclick="_gotoPage('<%=path %>/productPrice/toPriceAuditListPage.do')">商品变价审核</a>
                    </dd>
                </dl>
            </div>
            <!-- 未拥有店铺，不可见 -->
            <c:if test="${ userShopExist eq '1'}">
                <div class="LeftBox">
                    <h3>交易管理</h3>
                    <dl>
                        <dd id="YMCDSP"><a href="javascript:void('')" target="_self"
                                           url="<%=path %>/orderList/toOrderListPage.do"
                                           onclick="_gotoPage('<%=path %>/orderList/toOrderListPage.do')">已卖出的商品</a>
                        </dd>
                        <dd id="SPJYTJ"><a href="javascript:void('')" target="_self"
                                           url="<%=path %>/productForShow/toProductForShowList.do"
                                           onclick="_gotoPage('<%=path %>/productForShow/toProductForShowList.do')">商品销售统计</a>
                        </dd>
                        <dd id="SPJYTJ"><a href="javascript:void('')" target="_self"
                                           url="<%=path %>/productEval/toProductEvalListPage.do"
                                           onclick="_gotoPage('<%=path %>/productEval/toProductEvalListPage.do')">商品评价信息</a>
                        </dd>
                        <dd id="JYPJGL"><a href="javascript:void('')" target="_self"
                                           url="<%=path %>/eval/toEvalListPage.do"
                                           onclick="_gotoPage('<%=path %>/eval/toEvalListPage.do')">交易评价统计</a></dd>

                    </dl>
                </div>
            </c:if>
        </div>
    </div>
    <div style="width:80%;float:left;height:auto;">
        <iframe name="rightFrame" id="rightFrame" src="<%=path %>/postTrade/toPostTradeOnePage.do"
                style="overflow:hidden;height:auto;min-height:500px;width:100%;" frameborder="0"
                scrolling="no"></iframe>
    </div>
</div>
<jsp:include page="../html/main/mainFoot.html" flush="true"/>
</body>
<script type="text/javascript">
    var showId = "<%=showId%>";
    $(document).ready(function () {
        if (showId != "") {
            $(".LeftBox dd").removeClass("ddCur");
            $("#" + showId).addClass("ddCur");
            _gotoPage($("#" + showId + " a").attr("url"));
        }
    });

    function _gotoPage(url) {
        $("#rightFrame").attr("src", url);
    }
</script>
</html>
